package com.kaikeba.t31ticket.ticket.dao;

import com.kaikeba.t31ticket.ticket.entity.CarriageEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author wuhe
 * @email itzhao@163.com
 * @date 2021-11-11 02:04:51
 */
@Mapper
public interface CarriageDao extends BaseMapper<CarriageEntity> {

   List<CarriageEntity> findCarraigeList();

   @MapKey("trainId")
   List<Map<String, CarriageEntity>> findCarriageListMap();

   @MapKey("trainId")
   Map<String, CarriageEntity> findCarriageMap();
	
}
